<template>
    <div class="highlight">
        <el-button @click="setModelStatus">{{ isHighLight ? '模型恢复' : '模型高亮' }}</el-button>
    </div>
</template>
<script setup lang="ts">
import { getMyProjectManager } from "@/getMyProjectManager";
import { ref } from "vue";
const myProjectManager = getMyProjectManager()
const isHighLight = ref(false)
// 设置模型状态
const setModelStatus = () => {
    isHighLight.value = !isHighLight.value
    myProjectManager.functionActor.callFunction("SetHighLight", { Value: isHighLight.value })
    myProjectManager.tileset.materialMode = isHighLight.value ? 'technology' : "normal"

}
</script>
<style>
.highlight {
    margin-left: 10px;
}
</style>